package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.User;

import org.springframework.transaction.annotation.Transactional;



public interface UserService {


    public Integer save (User user);
    @Transactional(readOnly = false)
    public int update(User user);
    @Transactional(readOnly = false)
    public int delete(Integer uuid);


    public User get(Integer uuid);

    public PageInfo<User> gerAll(int page, int size);

    public User login(String userName,String password);

}
